package io;

import java.io.Serializable;
import java.util.Arrays;

public class Person implements Serializable {
    String name;
    int age;
    String gender;
    String [] otherInto;

    public Person(String name, String gender, int age, String[] otherInto) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.otherInto = otherInto;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String[] getOtherInto() {
        return otherInto;
    }

    public void setOtherInto(String[] otherInto) {
        this.otherInto = otherInto;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", otherInto=" + Arrays.toString(otherInto) +
                '}';
    }
}
